package org.example.wine.boot.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class User {
    private Integer id; //主键ID
    @NotBlank(message = "用户名不能为空")
    private String username; //用广名
    @JsonIgnore
    @NotBlank(message = "密码不能为空")
    @Size(min = 6, max = 20, message = "密码长度在6-20位之间")
    private String password; //密妈
    private String nickname; //呢称
    @NotBlank(message = "邮籍不能为空")
    private String email;//邮籍
    private String userPic; //用户头像地址
    private LocalDateTime createTime; //创建时阿
    private LocalDateTime updateTime;//更新时何

}
